{{extend name="user/index" /}}

{{block name="title"}}
<body data-type="widgets">
<script src="/static/admin/js/theme.js"></script>
<div class="am-g tpl-g">
{{/block}}

    {{block name="content"}}

    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">

        <div class="container-fluid am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                    <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 编辑用户
                        <small> </small>
                    </div>
                    <p class="page-header-description">Amaze UI 有许多不同的表格可用。</p>
                </div>
                <div class="am-u-lg-3 tpl-index-settings-button">
                    <button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置
                    </button>
                </div>
            </div>

        </div>

        <div class="row-content am-cf">


            <div class="row">

                <div class="am-u-sm-10 am-u-md-10 am-u-lg-10">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">边框表单</div>
                            <div class="widget-function am-fr">
                                <a href="javascript:;" class="am-icon-cog"></a>
                            </div>
                        </div>
                        <div class="widget-body am-fr">
                            <form class="am-form tpl-form-border-form tpl-form-border-br" action="{{:url('admin/nodecontroller/update',['id'=>$id])}}" method="post">
                                <input type="hidden" name="_method" value="PUT" >
                                <input type="hidden" name="id" value="{{$id}}">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label"> 节点名<span
                                            class="tpl-form-line-small-title">name</span></label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="tpl-form-input" name="name"
                                               value="{{$data['name']}}">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label"> 节点控制器名<span
                                            class="tpl-form-line-small-title">mname</span></label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="tpl-form-input" name="mname"
                                               value="{{$data['mname']}}">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label"> 节点控制器方法名<span
                                            class="tpl-form-line-small-title">aname</span></label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="tpl-form-input" name="aname"
                                               value="{{$data['aname']}}">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-phone" class="am-u-sm-3 am-form-label">状态 <span
                                            class="tpl-form-line-small-title">status</span></label>
                                    <div class="am-u-sm-9">
                                        <select name="status" data-am-selected="" style="display: none;">
                                            <option value="1" {{$data["status"]==1?"selected":""}}>启用</option>
                                            <option value="0" {{$data["status"]==1?"":"selected"}}>禁用</option>
                                        </select>
                                    </div>
                                </div>


                                <div class="am-form-group">
                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                        <button class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {{/block}}